<template>
  <div class="wxauth">
    <button class="btn" @click="wxAuth">授权登录</button>
  </div>
</template>

<script>
// @ is an alias to /src
import { wxAuth } from '../wxAuth'
export default {
  name: 'Home',
  methods: {
    wxAuth
  }
}
</script>

<style lang="less" scoped>
.wxauth {
  width: 100vw;
  height: 100vh;
  background: url('../assets/hb.jpg') no-repeat center;
  background-size: 100%;
  position: relative;
  .btn {
    width: 80%;
    height: 44px;
    line-height: 44px;
    border: none;
    border-radius: 8px;
    outline: none;
    position: absolute;
    background: #cc334f;
    left: 10%;
    bottom: 44px;
    color: #fff;
    font-size: 16px;
  }
}
</style>
